home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 12 - 1996 / 12.04 Apr 96 / ThreadingAppleEvents.sit / ThreadingAppleEvents / Grant's CGI Code 1.0b13 / Apple Events / AEFunc.c next >
MacBinary  |  1995-12-09  |  5.9 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
66% dexvert Compact Compressed (Unix) (archive/compact) ext Supported
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Sat Dec 9 11:47:09 1995, modified Sat Dec 9 11:47:09 1995, creator 'CWIE', type ASCII, 5370 bytes "AEFunc.c" , at 0x157a 410 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 08 41 45 46 75 6e 63 | 2e 63 00 00 00 00 00 00 |..AEFunc|.c......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 00 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 14 fa 00 | 00 01 9a ac ef 6e 0d ac |........|.....n..|
|00000060| ef 6e 0d 00 00 04 00 00 | 00 00 00 00 00 00 00 00 |.n......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 76 8b 00 00 |........|....v...|
|00000080| 2f 2a 2a 2a 2a 2a 0d 20 | 2a 0d 20 2a 09 41 45 46 |/*****. |*. *.AEF|
|00000090| 75 6e 63 2e 63 0d 20 2a | 0d 20 2a 09 54 68 69 73 |unc.c. *|. *.This|
|000000a0| 20 69 73 20 61 20 73 75 | 70 70 6f 72 74 20 66 69 | is a su|pport fi|
|000000b0| 6c 65 20 66 6f 72 20 22 | 47 72 61 6e 74 27 73 20 |le for "|Grant's |
|000000c0| 43 47 49 20 46 72 61 6d | 65 77 6f 72 6b 22 2e 0d |CGI Fram|ework"..|
|000000d0| 20 2a 09 50 6c 65 61 73 | 65 20 73 65 65 20 74 68 | *.Pleas|e see th|
|000000e0| 65 20 6c 69 63 65 6e 73 | 65 20 61 67 72 65 65 6d |e licens|e agreem|
|000000f0| 65 6e 74 20 74 68 61 74 | 20 61 63 63 6f 6d 70 61 |ent that| accompa|
|00000100| 6e 69 65 73 20 74 68 65 | 20 64 69 73 74 72 69 62 |nies the| distrib|
|00000110| 75 74 69 6f 6e 20 70 61 | 63 6b 61 67 65 0d 20 2a |ution pa|ckage. *|
|00000120| 09 66 6f 72 20 6c 69 63 | 65 6e 73 69 6e 67 20 64 |.for lic|ensing d|
|00000130| 65 74 61 69 6c 73 2e 0d | 20 2a 0d 20 2a 09 43 6f |etails..| *. *.Co|
|00000140| 70 79 72 69 67 68 74 20 | a9 31 39 39 35 20 62 79 |pyright |.1995 by|
|00000150| 20 47 72 61 6e 74 20 4e | 65 75 66 65 6c 64 0d 20 | Grant N|eufeld. |
|00000160| 2a 09 67 72 61 6e 74 40 | 61 63 6d 2e 63 6f 6d 0d |*.grant@|acm.com.|
|00000170| 20 2a 09 68 74 74 70 3a | 2f 2f 61 72 70 70 31 2e | *.http:|//arpp1.|
|00000180| 63 61 72 6c 65 74 6f 6e | 2e 63 61 2f 67 72 61 6e |carleton|.ca/gran|
|00000190| 74 2f 0d 20 2a 0d 20 2a | 2a 2a 2a 2a 2f 0d 0d 23 |t/. *. *|****/..#|
|000001a0| 69 6e 63 6c 75 64 65 20 | 22 4d 79 43 6f 6e 66 69 |include |"MyConfi|
|000001b0| 67 75 72 61 74 69 6f 6e | 2e 68 22 0d 0d 23 69 6e |guration|.h"..#in|
|000001c0| 63 6c 75 64 65 20 3c 73 | 74 64 6c 69 62 2e 68 3e |clude <s|tdlib.h>|
|000001d0| 0d 0d 23 69 6e 63 6c 75 | 64 65 20 22 63 6f 6d 70 |..#inclu|de "comp|
|000001e0| 69 6c 65 72 5f 73 74 75 | 66 66 2e 68 22 0d 23 69 |iler_stu|ff.h".#i|
|000001f0| 6e 63 6c 75 64 65 20 22 | 67 6c 6f 62 61 6c 73 2e |nclude "|globals.|
|00000200| 68 22 0d 0d 23 69 6e 63 | 6c 75 64 65 20 22 44 65 |h"..#inc|lude "De|
|00000210| 62 75 67 55 74 69 6c 2e | 68 22 0d 23 69 6e 63 6c |bugUtil.|h".#incl|
|00000220| 75 64 65 20 22 45 76 65 | 6e 74 55 74 69 6c 2e 68 |ude "Eve|ntUtil.h|
|00000230| 22 0d 23 69 6e 63 6c 75 | 64 65 20 22 45 72 72 6f |".#inclu|de "Erro|
|00000240| 72 55 74 69 6c 2e 68 22 | 0d 23 69 6e 63 6c 75 64 |rUtil.h"|.#includ|
|00000250| 65 20 22 4d 65 6d 6f 72 | 79 55 74 69 6c 2e 68 22 |e "Memor|yUtil.h"|
|00000260| 0d 0d 23 69 6e 63 6c 75 | 64 65 20 22 41 45 46 75 |..#inclu|de "AEFu|
|00000270| 6e 63 2e 68 22 0d 0d 0d | 2f 2a 2a 2a 20 20 46 55 |nc.h"...|/*** FU|
|00000280| 4e 43 54 49 4f 4e 53 20 | 20 2a 2a 2a 2f 0d 0d 2f |NCTIONS | ***/../|
|00000290| 2a 20 49 4d 3a 49 41 43 | 20 34 2d 33 35 20 2a 2f |* IM:IAC| 4-35 */|
|000002a0| 0d 4f 53 45 72 72 0d 4d | 79 47 6f 74 52 65 71 75 |.OSErr.M|yGotRequ|
|000002b0| 69 72 65 64 50 61 72 61 | 6d 73 20 28 20 41 70 70 |iredPara|ms ( App|
|000002c0| 6c 65 45 76 65 6e 74 20 | 2a 74 68 65 41 70 70 6c |leEvent |*theAppl|
|000002d0| 65 45 76 65 6e 74 20 29 | 0d 7b 0d 09 4f 53 45 72 |eEvent )|.{..OSEr|
|000002e0| 72 09 09 74 68 65 45 72 | 72 3b 0d 09 44 65 73 63 |r..theEr|r;..Desc|
|000002f0| 54 79 70 65 09 72 65 74 | 75 72 6e 65 64 54 79 70 |Type.ret|urnedTyp|
|00000300| 65 3b 0d 09 53 69 7a 65 | 09 09 61 63 74 75 61 6c |e;..Size|..actual|
|00000310| 53 69 7a 65 3b 0d 09 0d | 09 74 68 65 45 72 72 20 |Size;...|.theErr |
|00000320| 3d 20 41 45 47 65 74 41 | 74 74 72 69 62 75 74 65 |= AEGetA|ttribute|
|00000330| 50 74 72 20 28 20 74 68 | 65 41 70 70 6c 65 45 76 |Ptr ( th|eAppleEv|
|00000340| 65 6e 74 2c 20 6b 65 79 | 4d 69 73 73 65 64 4b 65 |ent, key|MissedKe|
|00000350| 79 77 6f 72 64 41 74 74 | 72 2c 20 74 79 70 65 57 |ywordAtt|r, typeW|
|00000360| 69 6c 64 43 61 72 64 2c | 0d 09 09 26 72 65 74 75 |ildCard,|...&retu|
|00000370| 72 6e 65 64 54 79 70 65 | 2c 20 6e 69 6c 2c 20 6e |rnedType|, nil, n|
|00000380| 69 6c 2c 20 26 61 63 74 | 75 61 6c 53 69 7a 65 20 |il, &act|ualSize |
|00000390| 29 3b 0d 09 0d 09 69 66 | 20 28 20 74 68 65 45 72 |);....if| ( theEr|
|000003a0| 72 20 3d 3d 20 65 72 72 | 41 45 44 65 73 63 4e 6f |r == err|AEDescNo|
|000003b0| 74 46 6f 75 6e 64 20 29 | 0d 09 7b 0d 09 09 2f 2a |tFound )|..{.../*|
|000003c0| 20 61 6c 6c 20 72 65 71 | 75 69 72 65 64 20 70 61 | all req|uired pa|
|000003d0| 72 61 6d 65 74 65 72 73 | 20 77 65 72 65 20 72 65 |rameters| were re|
|000003e0| 74 72 69 65 76 65 64 20 | 2a 2f 0d 09 09 72 65 74 |trieved |*/...ret|
|000003f0| 75 72 6e 20 6e 6f 45 72 | 72 3b 0d 09 7d 0d 09 65 |urn noEr|r;..}..e|
|00000400| 6c 73 65 20 69 66 20 28 | 20 74 68 65 45 72 72 20 |lse if (| theErr |
|00000410| 3d 3d 20 6e 6f 45 72 72 | 20 29 0d 09 7b 0d 09 09 |== noErr| )..{...|
|00000420| 2f 2a 20 72 65 71 75 69 | 72 65 64 20 70 61 72 61 |/* requi|red para|
|00000430| 6d 65 74 65 72 20 77 61 | 73 20 6d 69 73 73 65 64 |meter wa|s missed|
|00000440| 20 2a 2f 0d 09 09 72 65 | 74 75 72 6e 20 65 72 72 | */...re|turn err|
|00000450| 41 45 50 61 72 61 6d 4d | 69 73 73 65 64 3b 0d 09 |AEParamM|issed;..|
|00000460| 7d 0d 09 65 6c 73 65 0d | 09 7b 0d 09 09 72 65 74 |}..else.|.{...ret|
|00000470| 75 72 6e 20 74 68 65 45 | 72 72 3b 0d 09 7d 0d 7d |urn theE|rr;..}.}|
|00000480| 20 2f 2a 20 4d 79 47 6f | 74 52 65 71 75 69 72 65 | /* MyGo|tRequire|
|00000490| 64 50 61 72 61 6d 73 20 | 2a 2f 0d 0d 0d 2f 2a 20 |dParams |*/.../* |
|000004a0| 49 4d 3a 49 41 43 20 35 | 2d 32 33 20 2a 2f 0d 70 |IM:IAC 5|-23 */.p|
|000004b0| 61 73 63 61 6c 20 42 6f | 6f 6c 65 61 6e 0d 4d 79 |ascal Bo|olean.My|
|000004c0| 41 45 49 64 6c 65 46 75 | 6e 63 20 28 20 63 6f 6e |AEIdleFu|nc ( con|
|000004d0| 73 74 20 45 76 65 6e 74 | 52 65 63 6f 72 64 20 2a |st Event|Record *|
|000004e0| 74 68 65 45 76 65 6e 74 | 2c 20 6c 6f 6e 67 20 2a |theEvent|, long *|
|000004f0| 73 6c 65 65 70 54 69 6d | 65 2c 20 52 67 6e 48 61 |sleepTim|e, RgnHa|
|00000500| 6e 64 6c 65 20 2a 6d 6f | 75 73 65 52 67 6e 20 29 |ndle *mo|useRgn )|
|00000510| 0d 7b 0d 09 42 6f 6f 6c | 65 61 6e 09 09 74 68 65 |.{..Bool|ean..the|
|00000520| 52 65 73 75 6c 74 20 3d | 20 66 61 6c 73 65 3b 0d |Result =| false;.|
|00000530| 09 0d 09 73 77 69 74 63 | 68 20 28 20 74 68 65 45 |...switc|h ( theE|
|00000540| 76 65 6e 74 2d 3e 77 68 | 61 74 20 29 0d 09 7b 0d |vent->wh|at )..{.|
|00000550| 09 09 23 69 66 20 6b 43 | 6f 6d 70 69 6c 65 57 69 |..#if kC|ompileWi|
|00000560| 74 68 46 6f 72 65 67 72 | 6f 75 6e 64 0d 09 09 0d |thForegr|ound....|
|00000570| 09 09 63 61 73 65 20 75 | 70 64 61 74 65 45 76 74 |..case u|pdateEvt|
|00000580| 20 3a 0d 09 09 63 61 73 | 65 20 61 63 74 69 76 61 | :...cas|e activa|
|00000590| 74 65 45 76 74 20 3a 0d | 09 09 09 62 72 65 61 6b |teEvt :.|...break|
|000005a0| 3b 0d 09 09 0d 09 09 63 | 61 73 65 20 6f 73 45 76 |;......c|ase osEv|
|000005b0| 74 20 3a 0d 09 09 09 2f | 2a 20 4d 79 41 64 6a 75 |t :..../|* MyAdju|
|000005c0| 73 74 43 75 72 73 6f 72 | 20 28 20 74 68 65 45 76 |stCursor| ( theEv|
|000005d0| 65 6e 74 2d 3e 77 68 65 | 72 65 2c 20 74 68 65 4d |ent->whe|re, theM|
|000005e0| 6f 75 73 65 52 67 6e 20 | 29 3b 20 2a 2f 0d 09 09 |ouseRgn |); */...|
|000005f0| 09 64 6f 4f 73 45 76 74 | 20 28 20 74 68 65 45 76 |.doOsEvt| ( theEv|
|00000600| 65 6e 74 20 29 3b 0d 09 | 09 09 62 72 65 61 6b 3b |ent );..|..break;|
|00000610| 0d 09 09 0d 09 09 23 65 | 6e 64 69 66 09 2f 2a 20 |......#e|ndif./* |
|00000620| 6b 43 6f 6d 70 69 6c 65 | 57 69 74 68 46 6f 72 65 |kCompile|WithFore|
|00000630| 67 72 6f 75 6e 64 20 2a | 2f 0d 0d 09 09 0d 09 09 |ground *|/.......|
|00000640| 63 61 73 65 20 6e 75 6c | 6c 45 76 65 6e 74 20 3a |case nul|lEvent :|
|00000650| 0d 09 09 09 2f 2a 20 2a | 6d 6f 75 73 65 52 67 6e |..../* *|mouseRgn|
|00000660| 20 3d 20 74 68 65 4d 6f | 75 73 65 52 67 6e 3b 20 | = theMo|useRgn; |
|00000670| 2a 2f 0d 09 09 09 2a 73 | 6c 65 65 70 54 69 6d 65 |*/....*s|leepTime|
|00000680| 20 3d 20 67 53 6c 65 65 | 70 54 69 63 6b 73 3b 09 | = gSlee|pTicks;.|
|00000690| 2f 2a 20 6d 61 79 20 6e | 65 65 64 20 74 6f 20 63 |/* may n|eed to c|
|000006a0| 68 61 6e 67 65 20 74 6f | 20 75 73 65 20 63 6f 72 |hange to| use cor|
|000006b0| 72 65 63 74 20 76 61 6c | 75 65 20 66 6f 72 20 61 |rect val|ue for a|
|000006c0| 70 70 20 2a 2f 0d 09 09 | 09 0d 09 09 09 2f 2a 20 |pp */...|...../* |
|000006d0| 49 27 6d 20 6e 6f 74 20 | 31 30 30 25 20 63 65 72 |I'm not |100% cer|
|000006e0| 74 61 69 6e 20 74 68 61 | 74 20 74 68 69 73 20 73 |tain tha|t this s|
|000006f0| 68 6f 75 6c 64 20 62 65 | 20 68 65 72 65 2e 2e 2e |hould be| here...|
|00000700| 20 2a 2f 0d 09 09 09 23 | 69 66 20 6b 43 6f 6d 70 | */....#|if kComp|
|00000710| 69 6c 65 57 69 74 68 54 | 68 72 65 61 64 73 4f 70 |ileWithT|hreadsOp|
|00000720| 74 69 6f 6e 61 6c 0d 09 | 09 09 69 66 20 28 20 67 |tional..|..if ( g|
|00000730| 48 61 73 54 68 72 65 61 | 64 4d 67 72 20 29 0d 09 |HasThrea|dMgr )..|
|00000740| 09 09 23 65 6e 64 69 66 | 0d 09 09 09 7b 0d 09 09 |..#endif|....{...|
|00000750| 09 09 59 69 65 6c 64 54 | 6f 41 6e 79 54 68 72 65 |..YieldT|oAnyThre|
|00000760| 61 64 20 28 29 3b 0d 09 | 09 09 7d 0d 09 09 09 62 |ad ();..|..}....b|
|00000770| 72 65 61 6b 3b 0d 09 7d | 0d 09 0d 09 72 65 74 75 |reak;..}|....retu|
|00000780| 72 6e 20 74 68 65 52 65 | 73 75 6c 74 3b 0d 7d 20 |rn theRe|sult;.} |
|00000790| 2f 2a 20 4d 79 41 45 49 | 64 6c 65 46 75 6e 63 20 |/* MyAEI|dleFunc |
|000007a0| 2a 2f 0d 0d 0d 23 70 72 | 61 67 6d 61 20 6d 61 72 |*/...#pr|agma mar|
|000007b0| 6b 20 2d 0d 0d 2f 2a 20 | 67 65 74 20 61 20 73 74 |k -../* |get a st|
|000007c0| 72 69 6e 67 20 66 72 6f | 6d 20 61 20 70 61 72 61 |ring fro|m a para|
|000007d0| 6d 65 74 65 72 20 2a 2f | 0d 4f 53 45 72 72 0d 41 |meter */|.OSErr.A|
|000007e0| 45 47 65 74 50 61 72 61 | 6d 53 74 72 69 6e 67 20 |EGetPara|mString |
|000007f0| 28 20 63 6f 6e 73 74 20 | 41 70 70 6c 65 45 76 65 |( const |AppleEve|
|00000800| 6e 74 20 2a 74 68 65 41 | 70 70 6c 65 45 76 65 6e |nt *theA|ppleEven|
|00000810| 74 2c 20 41 45 4b 65 79 | 77 6f 72 64 20 74 68 65 |t, AEKey|word the|
|00000820| 41 45 4b 65 79 77 6f 72 | 64 2c 20 63 68 61 72 20 |AEKeywor|d, char |
|00000830| 2a 2a 74 68 65 53 74 72 | 69 6e 67 2c 20 63 68 61 |**theStr|ing, cha|
|00000840| 72 20 2a 74 65 6d 70 42 | 75 66 66 65 72 2c 20 6c |r *tempB|uffer, l|
|00000850| 6f 6e 67 20 62 75 66 66 | 65 72 53 69 7a 65 20 29 |ong buff|erSize )|
|00000860| 0d 7b 0d 09 4f 53 45 72 | 72 09 09 74 68 65 45 72 |.{..OSEr|r..theEr|
|00000870| 72 3b 0d 09 44 65 73 63 | 54 79 70 65 09 61 63 74 |r;..Desc|Type.act|
|00000880| 75 61 6c 54 79 70 65 3b | 0d 09 53 69 7a 65 09 09 |ualType;|..Size..|
|00000890| 61 63 74 75 61 6c 53 69 | 7a 65 3b 0d 09 0d 09 6d |actualSi|ze;....m|
|000008a0| 79 5f 61 73 73 65 72 74 | 20 28 20 74 68 65 53 74 |y_assert| ( theSt|
|000008b0| 72 69 6e 67 20 21 3d 20 | 6e 69 6c 2c 20 22 5c 70 |ring != |nil, "\p|
|000008c0| 41 45 47 65 74 50 61 72 | 61 6d 53 74 72 69 6e 67 |AEGetPar|amString|
|000008d0| 3a 20 74 68 65 53 74 72 | 69 6e 67 20 70 74 72 20 |: theStr|ing ptr |
|000008e0| 69 73 20 6e 69 6c 22 20 | 29 3b 0d 09 6d 79 5f 61 |is nil" |);..my_a|
|000008f0| 73 73 65 72 74 20 28 20 | 2a 74 68 65 53 74 72 69 |ssert ( |*theStri|
|00000900| 6e 67 20 3d 3d 20 6e 69 | 6c 2c 20 22 5c 70 41 45 |ng == ni|l, "\pAE|
|00000910| 47 65 74 50 61 72 61 6d | 53 74 72 69 6e 67 3a 20 |GetParam|String: |
|00000920| 73 74 72 69 6e 67 20 77 | 69 74 68 20 65 78 69 73 |string w|ith exis|
|00000930| 74 69 6e 67 20 63 68 61 | 72 73 20 72 65 63 65 69 |ting cha|rs recei|
|00000940| 76 65 64 22 20 29 3b 0d | 09 6d 79 5f 61 73 73 65 |ved" );.|.my_asse|
|00000950| 72 74 20 28 20 74 68 65 | 41 70 70 6c 65 45 76 65 |rt ( the|AppleEve|
|00000960| 6e 74 20 21 3d 20 6e 69 | 6c 2c 20 22 5c 70 41 45 |nt != ni|l, "\pAE|
|00000970| 47 65 74 50 61 72 61 6d | 53 74 72 69 6e 67 3a 20 |GetParam|String: |
|00000980| 74 68 65 41 70 70 6c 65 | 45 76 65 6e 74 20 70 74 |theApple|Event pt|
|00000990| 72 20 69 73 20 6e 69 6c | 22 20 29 3b 0d 09 6d 79 |r is nil|" );..my|
|000009a0| 5f 61 73 73 65 72 74 20 | 28 20 74 65 6d 70 42 75 |_assert |( tempBu|
|000009b0| 66 66 65 72 20 21 3d 20 | 6e 69 6c 2c 20 22 5c 70 |ffer != |nil, "\p|
|000009c0| 41 45 47 65 74 50 61 72 | 61 6d 53 74 72 69 6e 67 |AEGetPar|amString|
|000009d0| 3a 20 74 65 6d 70 42 75 | 66 66 65 72 20 70 74 72 |: tempBu|ffer ptr|
|000009e0| 20 69 73 20 6e 69 6c 22 | 20 29 3b 0d 09 0d 09 74 | is nil"| );....t|
|000009f0| 68 65 45 72 72 20 3d 20 | 41 45 47 65 74 50 61 72 |heErr = |AEGetPar|
|00000a00| 61 6d 50 74 72 20 28 20 | 74 68 65 41 70 70 6c 65 |amPtr ( |theApple|
|00000a10| 45 76 65 6e 74 2c 20 74 | 68 65 41 45 4b 65 79 77 |Event, t|heAEKeyw|
|00000a20| 6f 72 64 2c 20 74 79 70 | 65 43 68 61 72 2c 0d 09 |ord, typ|eChar,..|
|00000a30| 09 26 61 63 74 75 61 6c | 54 79 70 65 2c 20 28 50 |.&actual|Type, (P|
|00000a40| 74 72 29 74 65 6d 70 42 | 75 66 66 65 72 2c 20 62 |tr)tempB|uffer, b|
|00000a50| 75 66 66 65 72 53 69 7a | 65 2c 20 26 61 63 74 75 |ufferSiz|e, &actu|
|00000a60| 61 6c 53 69 7a 65 20 29 | 3b 0d 09 0d 09 69 66 20 |alSize )|;....if |
|00000a70| 28 20 74 68 65 45 72 72 | 20 3d 3d 20 6e 6f 45 72 |( theErr| == noEr|
|00000a80| 72 20 29 0d 09 7b 0d 09 | 09 6d 79 5f 61 73 73 65 |r )..{..|.my_asse|
|00000a90| 72 74 20 28 20 61 63 74 | 75 61 6c 53 69 7a 65 20 |rt ( act|ualSize |
|00000aa0| 3c 3d 20 62 75 66 66 65 | 72 53 69 7a 65 2c 20 22 |<= buffe|rSize, "|
|00000ab0| 5c 70 41 45 47 65 74 50 | 61 72 61 6d 53 74 72 69 |\pAEGetP|aramStri|
|00000ac0| 6e 67 3a 20 61 63 74 75 | 61 6c 20 70 61 72 61 6d |ng: actu|al param|
|00000ad0| 20 73 69 7a 65 20 74 6f | 6f 20 62 69 67 22 20 29 | size to|o big" )|
|00000ae0| 3b 0d 09 09 0d 09 09 2f | 2a 20 69 66 20 74 68 65 |;....../|* if the|
|00000af0| 20 70 61 72 61 6d 65 74 | 65 72 20 77 61 73 20 70 | paramet|er was p|
|00000b00| 72 65 73 65 6e 74 2c 20 | 61 6c 6c 6f 63 61 74 65 |resent, |allocate|
|00000b10| 20 73 70 61 63 65 20 74 | 6f 20 63 6f 70 79 20 69 | space t|o copy i|
|00000b20| 74 20 69 6e 74 6f 20 64 | 65 73 74 69 6e 61 74 69 |t into d|estinati|
|00000b30| 6f 6e 20 73 74 72 69 6e | 67 20 2a 2f 0d 09 09 2a |on strin|g */...*|
|00000b40| 74 68 65 53 74 72 69 6e | 67 20 3d 20 28 63 68 61 |theStrin|g = (cha|
|00000b50| 72 20 2a 29 20 4d 79 4e | 65 77 50 74 72 20 28 20 |r *) MyN|ewPtr ( |
|00000b60| 61 63 74 75 61 6c 53 69 | 7a 65 20 2b 20 31 2c 20 |actualSi|ze + 1, |
|00000b70| 26 74 68 65 45 72 72 20 | 29 3b 0d 09 09 0d 09 09 |&theErr |);......|
|00000b80| 69 66 20 28 20 2a 74 68 | 65 53 74 72 69 6e 67 20 |if ( *th|eString |
|00000b90| 21 3d 20 6e 69 6c 20 29 | 0d 09 09 7b 0d 09 09 09 |!= nil )|...{....|
|00000ba0| 2f 2a 20 63 6f 70 79 20 | 74 68 65 20 74 65 6d 70 |/* copy |the temp|
|00000bb0| 42 75 66 66 65 72 20 69 | 6e 74 6f 20 74 68 65 20 |Buffer i|nto the |
|00000bc0| 64 65 73 74 69 6e 61 74 | 69 6f 6e 20 73 74 72 69 |destinat|ion stri|
|00000bd0| 6e 67 20 2a 2f 0d 09 09 | 09 42 6c 6f 63 6b 4d 6f |ng */...|.BlockMo|
|00000be0| 76 65 20 28 20 74 65 6d | 70 42 75 66 66 65 72 2c |ve ( tem|pBuffer,|
|00000bf0| 20 2a 74 68 65 53 74 72 | 69 6e 67 2c 20 61 63 74 | *theStr|ing, act|
|00000c00| 75 61 6c 53 69 7a 65 20 | 29 3b 0d 09 09 09 0d 09 |ualSize |);......|
|00000c10| 09 09 2f 2a 20 70 75 74 | 20 61 20 6e 75 6c 6c 20 |../* put| a null |
|00000c20| 74 65 72 6d 69 6e 61 74 | 6f 72 20 61 74 20 74 68 |terminat|or at th|
|00000c30| 65 20 65 6e 64 20 6f 66 | 20 74 68 65 20 73 74 72 |e end of| the str|
|00000c40| 69 6e 67 20 2a 2f 0d 09 | 09 09 28 2a 74 68 65 53 |ing */..|..(*theS|
|00000c50| 74 72 69 6e 67 29 5b 61 | 63 74 75 61 6c 53 69 7a |tring)[a|ctualSiz|
|00000c60| 65 5d 20 3d 20 6e 69 6c | 3b 0d 09 09 7d 0d 09 7d |e] = nil|;...}..}|
|00000c70| 0d 09 0d 09 72 65 74 75 | 72 6e 20 74 68 65 45 72 |....retu|rn theEr|
|00000c80| 72 3b 0d 7d 20 2f 2a 20 | 41 45 47 65 74 50 61 72 |r;.} /* |AEGetPar|
|00000c90| 61 6d 53 74 72 69 6e 67 | 20 2a 2f 0d 0d 0d 2f 2a |amString| */.../*|
|00000ca0| 20 63 6f 70 79 20 61 20 | 70 61 72 61 6d 65 74 65 | copy a |paramete|
|00000cb0| 72 20 69 6e 74 6f 20 61 | 6e 20 65 78 69 73 74 69 |r into a|n existi|
|00000cc0| 6e 67 20 73 74 72 69 6e | 67 20 62 6c 6f 63 6b 20 |ng strin|g block |
|00000cd0| 2a 2f 0d 4f 53 45 72 72 | 0d 41 45 47 65 74 50 61 |*/.OSErr|.AEGetPa|
|00000ce0| 72 61 6d 53 74 72 69 6e | 67 4e 6f 41 6c 6c 6f 63 |ramStrin|gNoAlloc|
|00000cf0| 20 28 0d 09 63 6f 6e 73 | 74 20 41 70 70 6c 65 45 | (..cons|t AppleE|
|00000d00| 76 65 6e 74 20 2a 09 74 | 68 65 41 70 70 6c 65 45 |vent *.t|heAppleE|
|00000d10| 76 65 6e 74 2c 0d 09 41 | 45 4b 65 79 77 6f 72 64 |vent,..A|EKeyword|
|00000d20| 09 09 09 74 68 65 41 45 | 4b 65 79 77 6f 72 64 2c |...theAE|Keyword,|
|00000d30| 0d 09 63 68 61 72 20 2a | 09 09 09 09 74 68 65 53 |..char *|....theS|
|00000d40| 74 72 69 6e 67 2c 0d 09 | 6c 6f 6e 67 20 09 09 09 |tring,..|long ...|
|00000d50| 09 73 74 72 69 6e 67 53 | 69 7a 65 20 29 0d 7b 0d |.stringS|ize ).{.|
|00000d60| 09 4f 53 45 72 72 09 09 | 74 68 65 45 72 72 3b 0d |.OSErr..|theErr;.|
|00000d70| 09 44 65 73 63 54 79 70 | 65 09 61 63 74 75 61 6c |.DescTyp|e.actual|
|00000d80| 54 79 70 65 3b 0d 09 53 | 69 7a 65 09 09 61 63 74 |Type;..S|ize..act|
|00000d90| 75 61 6c 53 69 7a 65 3b | 0d 09 0d 09 6d 79 5f 61 |ualSize;|....my_a|
|00000da0| 73 73 65 72 74 20 28 20 | 74 68 65 53 74 72 69 6e |ssert ( |theStrin|
|00000db0| 67 20 21 3d 20 6e 69 6c | 2c 20 22 5c 70 41 45 47 |g != nil|, "\pAEG|
|00000dc0| 65 74 50 61 72 61 6d 53 | 74 72 69 6e 67 3a 20 74 |etParamS|tring: t|
|00000dd0| 68 65 53 74 72 69 6e 67 | 20 70 74 72 20 69 73 20 |heString| ptr is |
|00000de0| 6e 69 6c 22 20 29 3b 0d | 09 6d 79 5f 61 73 73 65 |nil" );.|.my_asse|
|00000df0| 72 74 20 28 20 74 68 65 | 41 70 70 6c 65 45 76 65 |rt ( the|AppleEve|
|00000e00| 6e 74 20 21 3d 20 6e 69 | 6c 2c 20 22 5c 70 41 45 |nt != ni|l, "\pAE|
|00000e10| 47 65 74 50 61 72 61 6d | 53 74 72 69 6e 67 3a 20 |GetParam|String: |
|00000e20| 74 68 65 41 70 70 6c 65 | 45 76 65 6e 74 20 70 74 |theApple|Event pt|
|00000e30| 72 20 69 73 20 6e 69 6c | 22 20 29 3b 0d 09 6d 79 |r is nil|" );..my|
|00000e40| 5f 61 73 73 65 72 74 20 | 28 20 73 74 72 69 6e 67 |_assert |( string|
|00000e50| 53 69 7a 65 20 21 3d 20 | 6e 69 6c 2c 20 22 5c 70 |Size != |nil, "\p|
|00000e60| 41 45 47 65 74 50 61 72 | 61 6d 53 74 72 69 6e 67 |AEGetPar|amString|
|00000e70| 3a 20 73 74 72 69 6e 67 | 53 69 7a 65 20 69 73 20 |: string|Size is |
|00000e80| 6e 69 6c 22 20 29 3b 0d | 09 0d 09 74 68 65 45 72 |nil" );.|...theEr|
|00000e90| 72 20 3d 20 41 45 47 65 | 74 50 61 72 61 6d 50 74 |r = AEGe|tParamPt|
|00000ea0| 72 20 28 20 74 68 65 41 | 70 70 6c 65 45 76 65 6e |r ( theA|ppleEven|
|00000eb0| 74 2c 20 74 68 65 41 45 | 4b 65 79 77 6f 72 64 2c |t, theAE|Keyword,|
|00000ec0| 20 74 79 70 65 43 68 61 | 72 2c 0d 09 09 26 61 63 | typeCha|r,...&ac|
|00000ed0| 74 75 61 6c 54 79 70 65 | 2c 20 28 50 74 72 29 74 |tualType|, (Ptr)t|
|00000ee0| 68 65 53 74 72 69 6e 67 | 2c 20 73 74 72 69 6e 67 |heString|, string|
|00000ef0| 53 69 7a 65 2c 20 26 61 | 63 74 75 61 6c 53 69 7a |Size, &a|ctualSiz|
|00000f00| 65 20 29 3b 0d 09 0d 09 | 72 65 74 75 72 6e 20 74 |e );....|return t|
|00000f10| 68 65 45 72 72 3b 0d 7d | 20 2f 2a 20 41 45 47 65 |heErr;.}| /* AEGe|
|00000f20| 74 50 61 72 61 6d 53 74 | 72 69 6e 67 20 2a 2f 0d |tParamSt|ring */.|
|00000f30| 0d 0d 23 70 72 61 67 6d | 61 20 73 65 67 6d 65 6e |..#pragm|a segmen|
|00000f40| 74 20 41 70 70 6c 65 45 | 76 65 6e 74 0d 2f 2a 20 |t AppleE|vent./* |
|00000f50| 67 65 74 20 61 20 73 68 | 6f 72 74 20 66 72 6f 6d |get a sh|ort from|
|00000f60| 20 61 20 70 61 72 61 6d | 65 74 65 72 20 2a 2f 0d | a param|eter */.|
|00000f70| 4f 53 45 72 72 0d 41 45 | 47 65 74 50 61 72 61 6d |OSErr.AE|GetParam|
|00000f80| 53 68 6f 72 74 20 28 20 | 63 6f 6e 73 74 20 41 70 |Short ( |const Ap|
|00000f90| 70 6c 65 45 76 65 6e 74 | 20 2a 74 68 65 41 70 70 |pleEvent| *theApp|
|00000fa0| 6c 65 45 76 65 6e 74 2c | 20 41 45 4b 65 79 77 6f |leEvent,| AEKeywo|
|00000fb0| 72 64 20 74 68 65 41 45 | 4b 65 79 77 6f 72 64 2c |rd theAE|Keyword,|
|00000fc0| 20 73 68 6f 72 74 20 2a | 74 68 65 53 68 6f 72 74 | short *|theShort|
|00000fd0| 2c 20 63 68 61 72 20 2a | 74 65 6d 70 42 75 66 66 |, char *|tempBuff|
|00000fe0| 65 72 2c 20 6c 6f 6e 67 | 20 62 75 66 66 65 72 53 |er, long| bufferS|
|00000ff0| 69 7a 65 20 29 0d 7b 0d | 09 4f 53 45 72 72 09 09 |ize ).{.|.OSErr..|
|00001000| 74 68 65 45 72 72 3b 0d | 09 44 65 73 63 54 79 70 |theErr;.|.DescTyp|
|00001010| 65 09 61 63 74 75 61 6c | 54 79 70 65 3b 0d 09 53 |e.actual|Type;..S|
|00001020| 69 7a 65 09 09 61 63 74 | 75 61 6c 53 69 7a 65 3b |ize..act|ualSize;|
|00001030| 0d 09 0d 09 6d 79 5f 61 | 73 73 65 72 74 20 28 20 |....my_a|ssert ( |
|00001040| 74 68 65 53 68 6f 72 74 | 20 21 3d 20 6e 69 6c 2c |theShort| != nil,|
|00001050| 20 22 5c 70 41 45 47 65 | 74 50 61 72 61 6d 53 68 | "\pAEGe|tParamSh|
|00001060| 6f 72 74 3a 20 74 68 65 | 53 68 6f 72 74 20 70 74 |ort: the|Short pt|
|00001070| 72 20 69 73 20 6e 69 6c | 22 20 29 3b 0d 09 6d 79 |r is nil|" );..my|
|00001080| 5f 61 73 73 65 72 74 20 | 28 20 74 68 65 41 70 70 |_assert |( theApp|
|00001090| 6c 65 45 76 65 6e 74 20 | 21 3d 20 6e 69 6c 2c 20 |leEvent |!= nil, |
|000010a0| 22 5c 70 41 45 47 65 74 | 50 61 72 61 6d 53 68 6f |"\pAEGet|ParamSho|
|000010b0| 72 74 3a 20 74 68 65 41 | 70 70 6c 65 45 76 65 6e |rt: theA|ppleEven|
|000010c0| 74 20 70 74 72 20 69 73 | 20 6e 69 6c 22 20 29 3b |t ptr is| nil" );|
|000010d0| 0d 09 6d 79 5f 61 73 73 | 65 72 74 20 28 20 74 65 |..my_ass|ert ( te|
|000010e0| 6d 70 42 75 66 66 65 72 | 20 21 3d 20 6e 69 6c 2c |mpBuffer| != nil,|
|000010f0| 20 22 5c 70 41 45 47 65 | 74 50 61 72 61 6d 53 68 | "\pAEGe|tParamSh|
|00001100| 6f 72 74 3a 20 74 65 6d | 70 42 75 66 66 65 72 20 |ort: tem|pBuffer |
|00001110| 70 74 72 20 69 73 20 6e | 69 6c 22 20 29 3b 0d 09 |ptr is n|il" );..|
|00001120| 0d 09 74 68 65 45 72 72 | 20 3d 20 41 45 47 65 74 |..theErr| = AEGet|
|00001130| 50 61 72 61 6d 50 74 72 | 0d 09 09 28 20 74 68 65 |ParamPtr|...( the|
|00001140| 41 70 70 6c 65 45 76 65 | 6e 74 2c 20 74 68 65 41 |AppleEve|nt, theA|
|00001150| 45 4b 65 79 77 6f 72 64 | 2c 20 74 79 70 65 43 68 |EKeyword|, typeCh|
|00001160| 61 72 2c 20 26 61 63 74 | 75 61 6c 54 79 70 65 2c |ar, &act|ualType,|
|00001170| 20 28 50 74 72 29 74 65 | 6d 70 42 75 66 66 65 72 | (Ptr)te|mpBuffer|
|00001180| 2c 20 62 75 66 66 65 72 | 53 69 7a 65 2c 20 26 61 |, buffer|Size, &a|
|00001190| 63 74 75 61 6c 53 69 7a | 65 20 29 3b 0d 09 0d 09 |ctualSiz|e );....|
|000011a0| 69 66 20 28 20 74 68 65 | 45 72 72 20 3d 3d 20 6e |if ( the|Err == n|
|000011b0| 6f 45 72 72 20 29 0d 09 | 7b 0d 09 09 6d 79 5f 61 |oErr )..|{...my_a|
|000011c0| 73 73 65 72 74 20 28 20 | 61 63 74 75 61 6c 53 69 |ssert ( |actualSi|
|000011d0| 7a 65 20 3c 3d 20 62 75 | 66 66 65 72 53 69 7a 65 |ze <= bu|fferSize|
|000011e0| 2c 20 22 5c 70 41 45 47 | 65 74 50 61 72 61 6d 53 |, "\pAEG|etParamS|
|000011f0| 68 6f 72 74 3a 20 61 63 | 74 75 61 6c 20 70 61 72 |hort: ac|tual par|
|00001200| 61 6d 20 73 69 7a 65 20 | 74 6f 6f 20 62 69 67 22 |am size |too big"|
|00001210| 20 29 3b 0d 09 09 0d 09 | 09 2f 2a 20 74 65 72 6d | );.....|./* term|
|00001220| 69 6e 61 74 65 20 74 68 | 65 20 62 75 66 66 65 72 |inate th|e buffer|
|00001230| 20 77 69 74 68 20 61 20 | 6e 75 6c 6c 20 62 79 74 | with a |null byt|
|00001240| 65 20 73 6f 20 69 74 20 | 77 69 6c 6c 20 62 65 20 |e so it |will be |
|00001250| 61 20 70 72 6f 70 65 72 | 20 43 20 73 74 72 69 6e |a proper| C strin|
|00001260| 67 20 2a 2f 0d 09 09 74 | 65 6d 70 42 75 66 66 65 |g */...t|empBuffe|
|00001270| 72 5b 61 63 74 75 61 6c | 53 69 7a 65 5d 20 3d 20 |r[actual|Size] = |
|00001280| 6e 69 6c 3b 0d 09 09 0d | 09 09 2a 74 68 65 53 68 |nil;....|..*theSh|
|00001290| 6f 72 74 20 3d 20 61 74 | 6f 69 20 28 20 74 65 6d |ort = at|oi ( tem|
|000012a0| 70 42 75 66 66 65 72 20 | 29 3b 0d 09 7d 0d 09 0d |pBuffer |);..}...|
|000012b0| 09 72 65 74 75 72 6e 20 | 74 68 65 45 72 72 3b 0d |.return |theErr;.|
|000012c0| 7d 20 2f 2a 20 41 45 47 | 65 74 50 61 72 61 6d 53 |} /* AEG|etParamS|
|000012d0| 68 6f 72 74 20 2a 2f 0d | 0d 0d 2f 2a 20 67 65 74 |hort */.|../* get|
|000012e0| 20 61 20 6c 6f 6e 67 20 | 76 61 6c 75 65 20 66 72 | a long |value fr|
|000012f0| 6f 6d 20 61 20 70 61 72 | 61 6d 65 74 65 72 20 2a |om a par|ameter *|
|00001300| 2f 0d 4f 53 45 72 72 0d | 41 45 47 65 74 50 61 72 |/.OSErr.|AEGetPar|
|00001310| 61 6d 4c 6f 6e 67 20 28 | 20 63 6f 6e 73 74 20 41 |amLong (| const A|
|00001320| 70 70 6c 65 45 76 65 6e | 74 20 2a 74 68 65 41 70 |ppleEven|t *theAp|
|00001330| 70 6c 65 45 76 65 6e 74 | 2c 20 41 45 4b 65 79 77 |pleEvent|, AEKeyw|
|00001340| 6f 72 64 20 74 68 65 41 | 45 4b 65 79 77 6f 72 64 |ord theA|EKeyword|
|00001350| 2c 20 6c 6f 6e 67 20 2a | 74 68 65 4c 6f 6e 67 20 |, long *|theLong |
|00001360| 29 0d 7b 0d 09 4f 53 45 | 72 72 09 09 74 68 65 45 |).{..OSE|rr..theE|
|00001370| 72 72 3b 0d 09 44 65 73 | 63 54 79 70 65 09 61 63 |rr;..Des|cType.ac|
|00001380| 74 75 61 6c 54 79 70 65 | 3b 0d 09 53 69 7a 65 09 |tualType|;..Size.|
|00001390| 09 61 63 74 75 61 6c 53 | 69 7a 65 3b 0d 09 0d 09 |.actualS|ize;....|
|000013a0| 6d 79 5f 61 73 73 65 72 | 74 20 28 20 74 68 65 4c |my_asser|t ( theL|
|000013b0| 6f 6e 67 20 21 3d 20 6e | 69 6c 2c 20 22 5c 70 41 |ong != n|il, "\pA|
|000013c0| 45 47 65 74 50 61 72 61 | 6d 53 68 6f 72 74 3a 20 |EGetPara|mShort: |
|000013d0| 74 68 65 4c 6f 6e 67 20 | 70 74 72 20 69 73 20 6e |theLong |ptr is n|
|000013e0| 69 6c 22 20 29 3b 0d 09 | 6d 79 5f 61 73 73 65 72 |il" );..|my_asser|
|000013f0| 74 20 28 20 74 68 65 41 | 70 70 6c 65 45 76 65 6e |t ( theA|ppleEven|
|00001400| 74 20 21 3d 20 6e 69 6c | 2c 20 22 5c 70 41 45 47 |t != nil|, "\pAEG|
|00001410| 65 74 50 61 72 61 6d 53 | 68 6f 72 74 3a 20 74 68 |etParamS|hort: th|
|00001420| 65 41 70 70 6c 65 45 76 | 65 6e 74 20 70 74 72 20 |eAppleEv|ent ptr |
|00001430| 69 73 20 6e 69 6c 22 20 | 29 3b 0d 09 0d 09 74 68 |is nil" |);....th|
|00001440| 65 45 72 72 20 3d 20 41 | 45 47 65 74 50 61 72 61 |eErr = A|EGetPara|
|00001450| 6d 50 74 72 0d 09 09 28 | 20 74 68 65 41 70 70 6c |mPtr...(| theAppl|
|00001460| 65 45 76 65 6e 74 2c 20 | 74 68 65 41 45 4b 65 79 |eEvent, |theAEKey|
|00001470| 77 6f 72 64 2c 20 74 79 | 70 65 4c 6f 6e 67 49 6e |word, ty|peLongIn|
|00001480| 74 65 67 65 72 2c 20 26 | 61 63 74 75 61 6c 54 79 |teger, &|actualTy|
|00001490| 70 65 2c 20 28 50 74 72 | 29 74 68 65 4c 6f 6e 67 |pe, (Ptr|)theLong|
|000014a0| 2c 20 73 69 7a 65 6f 66 | 28 6c 6f 6e 67 29 2c 20 |, sizeof|(long), |
|000014b0| 26 61 63 74 75 61 6c 53 | 69 7a 65 20 29 3b 0d 09 |&actualS|ize );..|
|000014c0| 0d 09 69 66 20 28 20 74 | 68 65 45 72 72 20 3d 3d |..if ( t|heErr ==|
|000014d0| 20 6e 6f 45 72 72 20 29 | 0d 09 7b 0d 09 09 6d 79 | noErr )|..{...my|
|000014e0| 5f 61 73 73 65 72 74 20 | 28 20 61 63 74 75 61 6c |_assert |( actual|
|000014f0| 53 69 7a 65 20 3c 3d 20 | 73 69 7a 65 6f 66 28 6c |Size <= |sizeof(l|
|00001500| 6f 6e 67 29 2c 20 22 5c | 70 41 45 47 65 74 50 61 |ong), "\|pAEGetPa|
|00001510| 72 61 6d 4c 6f 6e 67 3a | 20 61 63 74 75 61 6c 20 |ramLong:| actual |
|00001520| 70 61 72 61 6d 20 73 69 | 7a 65 20 74 6f 6f 20 62 |param si|ze too b|
|00001530| 69 67 22 20 29 3b 0d 09 | 7d 0d 09 0d 09 72 65 74 |ig" );..|}....ret|
|00001540| 75 72 6e 20 74 68 65 45 | 72 72 3b 0d 7d 20 2f 2a |urn theE|rr;.} /*|
|00001550| 20 41 45 47 65 74 50 61 | 72 61 6d 53 68 6f 72 74 | AEGetPa|ramShort|
|00001560| 20 2a 2f 0d 0d 0d 2f 2a | 2a 2a 2a 2a 20 20 45 4f | */.../*|**** EO|
|00001570| 46 20 20 2a 2a 2a 2a 2a | 2f 0d 00 00 00 00 00 00 |F *****|/.......|
|00001580| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00001590| de 18 4e 90 2c 00 48 46 | 42 46 4a 86 59 8f 59 8f |..N.,.HF|BFJ.Y.Y.|
|000015a0| 2f 06 2f 2e ff f8 a8 4d | 2f 2e ff fc a8 68 20 07 |/./....M|/....h .|
|000015b0| 08 41 45 46 75 6e 63 2e | 63 00 02 00 00 00 54 45 |.AEFunc.|c.....TE|
|000015c0| 58 54 43 57 49 45 00 04 | 00 00 00 00 00 00 00 00 |XTCWIE..|........|
|000015d0| 00 00 54 45 58 54 43 57 | 49 45 00 04 00 00 00 00 |..TEXTCW|IE......|
|000015e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000015f0| 00 00 aa 3f 49 91 00 00 | 00 00 00 00 01 9a e5 41 |...?I...|.......A|
|00001600| 37 80 10 00 ba 44 5d c3 | 44 03 67 04 30 04 60 02 |7....D].|D.g.0.`.|
|00001610| 30 05 22 07 e5 41 37 80 | 10 02 52 47 be 6d fe 5c |0."..A7.|..RG.m.\|
|00001620| 6d 00 ff 1c 7a 00 78 00 | 42 47 3b 6d fe 50 fe 4e |m...z.x.|BG;m.P.N|
|00001630| 20 6d de 18 4e 90 32 2d | fe 5c 48 c1 4e ba 07 ae | m..N.2-|.\H.N...|
|00001640| c0 bc 00 00 7f ff 3b 40 | fe 50 2c 05 20 05 e2 80 |......;@|.P,. ...|
|00001650| 2d 40 ff f0 59 8f 30 2d | fe 50 e9 40 2f 34 00 00 |-@..Y.0-|.P.@/4..|
|00001660| 2f 04 20 6d de 1c 4e 90 | 20 2e ff f0 22 1f d2 80 |/. m..N.| ..."...|
|00001670| 30 2d fe 50 e9 40 20 34 | 00 08 d0 81 2a 00 59 8f |0-.P.@ 4|....*.Y.|
|00001680| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00001690| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000016a0| 00 00 00 00 00 00 00 03 | 00 04 00 57 00 05 01 b4 |........|...W....|
|000016b0| 02 19 00 57 00 05 01 b4 | 02 19 ac ef 27 5c 00 00 |...W....|....'\..|
|000016c0| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 00 04 |........|........|
|000016d0| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|000016e0| 00 00 00 46 00 99 3b 54 | 1f 38 00 00 00 1c 00 46 |...F..;T|.8.....F|
|000016f0| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00001700| 00 1e 03 ed ff ff 00 00 | 00 00 00 99 3b 30 03 f0 |........|....;0..|
|00001710| ff ff 00 00 00 4c 00 99 | 3b ec 00 00 00 00 00 00 |.....L..|;.......|
|00001720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+